set(hello_FOUND TRUE) # auto 
set(hello_ROOT_DIR /home/lhd/work/testCmake/hello/)

find_path(hello_INCLUDE_DIR NAMES hello.h PATHS "${hello_ROOT_DIR}") 
#mark_as_advanced(hello_INCLUDE_DIR) # show entry in cmake-gui

find_library(hello_LIBRARY NAMES libhello.so PATHS "${hello_ROOT_DIR}/build") 
#mark_as_advanced(hello_LIBRARY) # show entry in cmake-gui

# use xxx_INCLUDE_DIRS and xxx_LIBRARIES in CMakeLists.txt

find_package(world CONFIG)


if (world_FOUND)
set(hello_INCLUDE_DIRS ${hello_INCLUDE_DIR} ${world_INCLUDE_DIRS})
message(WARNING "======================hello_INCLUDE_DIRS=${hello_INCLUDE_DIRS}")
set(hello_LIBRARIES ${hello_LIBRARY} ${world_LIBRARIES})
message(WARNING "======================hello_LIBRARIES=${hello_LIBRARIES}")
#set(hello_INCLUDE_DIRS ${hello_INCLUDE_DIR} )
#set(hello_LIBRARIES ${hello_LIBRARY} )
message( "hello-config.cmake " ${hello_ROOT_DIR})
endif()
